package com.cloud.server.system.feign;

import com.cloud.common.core.base.ApiResponse;
import com.cloud.common.core.constant.ServerConstant;
import com.cloud.server.system.feign.fallback.TestServiceFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Description: Test服务Feign客户端
 * @Auther: zhangxun
 * @Date: 2020/8/12 21:01
 */
@FeignClient(value = ServerConstant.CLOUD_SERVER_TEST,contextId = "testServiceClient",fallbackFactory = TestServiceFallback.class)
public interface TestFeignService {
    @GetMapping("/testService/test/hello")
    ApiResponse<String> hello(@RequestParam String name);
}